<template>
  <div style="text-align: center">
    <div style="width:200px;float:left">
      <span style="font-size:20px;margin-left:-30px ">1号机</span>
      <img style="margin-top: 20px;margin-right:15px; height:160px; width:180px" src="../../../../assets/images/warpingmac2.png"/>
      <div class="d-flex" style="">
        <span v-if="curMachine.warpingSpeed1/110 < 1"  style="color: #ff4949" class="coin">停机</span>
        <span v-else-if="curMachine.warpingSpeed1/110 > 1 && curMachine.warpingSpeed1/110 < 60" style="color: #48D1CC" class="coin">运行</span>
        <span v-else-if="curMachine.warpingSpeed1/110 > 60" style="color: #13ce66" class="coin">运行</span>
      </div>
    </div>
    <div style="width:200px;float:left">
      <span style="font-size:20px;margin-left:-30px ">2号机</span>
      <img style="margin-top: 20px;margin-left:15px; height:160px; width:180px" src="../../../../assets/images/warpingmac2.png"/>
      <div class="d-flex" style="">
        <span v-if="curMachine.warpingSpeed2/110 < 1"  style="color: #ff4949" class="coin">停机</span>
        <span v-else-if="curMachine.warpingSpeed2/110 > 1 && curMachine.warpingSpeed2/110 < 60" style="color: #48D1CC" class="coin">运行</span>
        <span v-else-if="curMachine.warpingSpeed2/110 > 60" style="color: #13ce66" class="coin">运行</span>
      </div>
    </div>

<!--    <img style="margin-top: 20px ;height:110px; width:110px" src="../../../../assets/images/warpingmac.jpg"/>-->
<!--    <div class="d-flex" style="">-->
<!--      <span v-if="curMachine.speed/110 < 1"  style="color: #ff4949" class="coin">停机中</span>-->
<!--      <span v-else-if="curMachine.speed/110 > 1 && curMachine.speed/110 < 60" style="color: #48D1CC" class="coin">低速运行中</span>-->
<!--      <span v-else-if="curMachine.speed/110 > 60" style="color: #13ce66" class="coin">高速运行中</span>-->
<!--    </div>-->
    <!--    <Chart :cdata="cdata" />-->
  </div>
</template>

<script>
    export default {
        props: {
            curMachine: {
                type: Object,
                required: true,
            }
        },

        data() {
            return {}
        },
        components: {},
        mounted() {
        },
        created(){

        },
        methods: {}
    }
</script>
<style lang="scss" scoped>

  // 金币
  .coin {
    position: center;
    padding-top: 30px;
    padding-left: 25%;
    top: 6px;
    font-size: 25px;
    color: #ffc107;
  }

  .text {
    color: #c3cbde;
  }

  .dv-dec-3 {
    position: relative;
    width: 100px;
    height: 20px;
    top: -3px;
  }

  .bottom-data {
    .item-box {
      & > div {
        padding-right: 5px;
      }

      font-size: 14px;
      float: right;
      position: relative;
      width: 80%;
      color: #d3d6dd;

      .dv-digital-flop {
        width: 120px;
        height: 30px;
      }


      .colorYellow {
        color: yellowgreen;
      }

      p {
        text-align: center;
      }
    }
  }

</style>
